<% layout('/layouts/default.html', {title: '领导批示', libs: ['validate','fileupload']}){ %>
<div class="main-content">
	<div class="box box-main">
		<#form:form id="inputForm" model="${taskReceiveTwo}" action="${ctx}/audit/taskReceive/instructions" method="post" class="form-horizontal">
			<div class="box-body">
				<div class="row" style="height: 70px;">
					<div class="col-xs-12" style="margin-top: 20px;">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required">*</span> 选择批示领导：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-8">
								<#form:hidden path="id"/>
								<#form:hidden path="isNewRecord"/>
								<!--<#form:treeselect id="explainCode" title="用户选择" path="explainCode" labelPath="explainName"
								url="${ctx}/sys/office/treeData?isLoadUser=true" class="required" allowClear="true"/>-->
							<!--	<#form:listselect id="explain" title="用户选择"
								url="${ctx}/sys/empUser/empUserSelect" allowClear="false"
								labelPath="explainName" path="explainCode" class="required"
								checkbox="false" itemCode="userCode" itemName="userName"/> -->

								<#form:listselect title="用户选择"
								url="${ctx}/sys/empUser/customizedUserSelect" allowClear="false"
								labelPath="explainName"  path="explainCode" class="form-control required"
								checkbox="false" itemCode="userCode" itemName="userName"/>
							</div>
						</div>
					</div>
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
							<span class="required">*</span> 拟办意见：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-8">
								<#form:textarea path="explainContent" rows="6" class="form-control required"/>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="box-footer">
				<div class="row" style="text-align: right;">
					<div class="col-sm-offset-2 col-sm-10">
						<button type="submit" class="btn btn-sm btn-primary" id="btnSubmit"><i class="fa fa-check"></i> ${text('确 定')}</button>&nbsp;
						<button type="button" class="btn btn-sm btn-default" id="btnCancel" onclick="js.closeCurrentTabPage()"><i class="fa fa-reply-all"></i> ${text('关 闭')}</button>
					</div>
				</div>
			</div>
		</#form:form>
	</div>
</div>
<% } %>
<script>
$("#inputForm").validate({
	submitHandler: function(form){
		js.ajaxSubmitForm($(form), function(data){
			js.showMessage(data.message);
			if(data.result == Global.TRUE){
				js.closeCurrentTabPage(function(contentWindow){
					contentWindow.page();
				});
			}
		}, "json");
    }
});
</script>